{% extends 'layout.html' %} 
{% block main %}
<div class="table_content" id="tagAdd">
    <div class="table_content_head pd_b20 pd_t20 clear">
        <a href="javascript:window.history.back();" class="small_btn orange_color fr">返回</a>
    </div>
    <form method="post">
		<div class="form-group">
	    	<label for="tagName">标签名</label>
	    	<input type="text" name="tag" class="form-control" id="exampleInputEmail1" placeholder="请输入标签名" value="{{tag.tag}}">
	  	</div>
	  	<div class="form-group">
	    	<label for="exampleInputPassword1">显示顺序</label>
	    	<input type="number" name="orderTag" class="form-control" id="exampleInputPassword1" placeholder="请输入数字，表示显示顺序，越小越靠前" value="{{tag.orderTag}}">
	  	</div>
	  	<div class="checkbox">
		    <label>
		    	<input type="checkbox" name="showTag" value="{{tag.showTag}}" {% if tag.showTag %} checked="checked"  {% endif %}/>是否显示
		    </label>
		</div>
		<div class="form-group pd_b20">
		    <div class="col-sm-offset-2 col-sm-10 error"></div>
		</div>
	  	<div class="form-group">
	    	<div class="col-sm-offset-2 col-sm-10">
	      		<button type="submit" class="btn btn-default orange_color mr_r20" >保存</button><a type="button" onclick="confirmAlert('{{messageText}}','{{hrefUrl}}')" class="btn btn-default">取消</a>
	    	</div>
	  	</div>
  	</form>
</div>
{% endblock %}
